package com.xzm.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.*;

/**
 * @author 瞎琢磨先生 https://github.com/xiazuomo/xzm-utils.git
 * @date 2022/7/29 23:51
 */

@Component
@Slf4j
public class ListUtils {

    @SafeVarargs
    public static <E> List<E> newList(E... element) {
        List<E> result = new ArrayList<>();
        Collections.addAll(result, element);
        return result;
    }

}
